import request from '@/utils/request'

// 软体-核心指标
export function getSoftwareQuantity(date) {
  return request({
    url: '/app/v1/produces/core-software-quantity',
    method: 'get',
    params: { date }
  })
}
// 软体-核心指标-弹框明细
export function getSoftwareQuantitySubclass(date) {
  return request({
    url: '/app/v1/produces/core-software-quantity/subclass',
    method: 'get',
    params: date
  })
}
// 软体-软体看板近6月趋势
export function getSixMonthTrend(date) {
  return request({
    url: '/app/v1/produces/software/trend/6month',
    method: 'get',
    params: date
  })
}
// 软体-软体看板近30日趋势
export function getThirtyDayTrend(date) {
  return request({
    url: '/app/v1/produces/software/trend/30days',
    method: 'get',
    params: date
  })
}
// 软体-软体看板分厂
export function getFactoryQuantity(date) {
  return request({
    url: '/app/v1/produces/software/factory-quantity',
    method: 'get',
    params: date
  })
}
// 软体-软体看板小类
export function getSubclassQuantity(date) {
  return request({
    url: '/app/v1/produces/software/subclass-quantity',
    method: 'get',
    params: date
  })
}
// 软体-软体看板工厂看小类
export function getFactorySubclassQuantity(date) {
  return request({
    url: '/app/v1/produces/software/factory-subclass-quantity',
    method: 'get',
    params: date
  })
}
// 软体-软体看板小类看工厂
export function getSubclassFactoryQuantity(date) {
  return request({
    url: '/app/v1/produces/software/subclass-factory-quantity',
    method: 'get',
    params: date
  })
}
// 软体-软体看板大类今年总产量
export function getThisYearBigTypeQuantity(date) {
  return request({
    url: '/app/v1/produces/software/this-year-big-type-quantity',
    method: 'get',
    params: date
  })
}
